/*
 * Powered By [pkuWx]
 * Web Site: http://www.wuxi.ss.pku.edu.cn
 * Since 2015 - 2015
 */

package cn.edu.pku.wxlib.student.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.edu.pku.wxlib.student.dao.StudentDao;
import cn.edu.pku.wxlib.student.model.Student;
import cn.edu.pku.wxlib.student.vo.query.StudentQuery;
import javacommon.base.BaseManager;
import javacommon.base.EntityDao;
import javacommon.page.Page;

/**
 * @version 1.0
 * @since 1.0
 */

@Service
@Transactional
public class StudentManager extends BaseManager<Student,StudentQuery,java.lang.Integer> implements StudentService{

	private StudentDao studentDao;
	public void setStudentDao(StudentDao dao) {
		this.studentDao = dao;
	}
	public EntityDao getEntityDao() {
		return this.studentDao;
	}
	
	@Transactional(readOnly=true)
	public Page findPage(StudentQuery query) {
		return studentDao.findPage(query);
	}
}
